home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
bbs
/
rtmail11
/
retmail.doc
< prev
next >
Wrap
Text File
|
1995-08-12
|
4KB
|
115 lines
RETMAIL v1.1
A util for F6FBB BBSes which returns undelivered messages.
(c) 1995 Mathijs Maassen (PE1NTP)
As of version 5.15 of the FBB BBS the EPURMESS program returns messages
which cannot be forwarded due to a bad or unknown route. (Or sysop laziness
:-) Local messages however are simply killed after expiring, without
notifying the sender of the message. I wrote RETMAIL to fix this problem.
RETMAIL returns two types of messages:
o Messages for known users which are about to expire.
o Messages for unknown users which are about to expire.
The expiry of unread pmail is handled by RETMAIL itself, not by EPURMESS.
RETMAIL scans the message database (DIRMES.SYS) for messages with type 'P',
status 'N' and no @BBS field. (i.e. local unread p-mail) It then checks
if the callsign for whom the message is has an entry in the users database.
(INF.SYS). If the message is expired it will be returned to the originator,
and the message-status will be changed to 'K'. (i.e. killed)
The locations of the various files are taken from INIT.SRV. RETMAIL should
be started from the directory where the INIT.SRV file resides.
The two expiry limits are given as command-line arguments to RETMAIL. The
first argument is the number of days after which a message for an unknown
user will expire. The second argument is the number of days for message to a
known user. For example:
RETMAIL 7 100
This will return messages for unknown users after 7 days, and unread
messages for known users after 100 days.
If RETMAIL is given a third argument it will operate in debug mode. It
doesn't matter what the third argument is. In debug mode no messages are
killed, and the output is written to the file RETMAIL.DBG instead of the
MAIL.IN file. I recommend testing RETMAIL in debug mode before using it in
Real Life Situations (tm).
RETMAIL should be started from within your APPEL.BAT (or whatever name it
has on your system). Don't use RETMAIL while the BBS is running! It's safe
to run it in debug mode though.
Returned messages look like this:
#
SP PE1XYZ @ PI8ABC
Returned mail: Message expired
Your message for PE1HPV entitled 'Re: tmail'
was about to expire after being unread for 50 days.
PE1HPV's last login was on Mon 12 Jun 1995, 02:42:00 GMT
-----------------------------------------------------------------------------
Path: !PI8XYZ!PI8ABC!
--message--
./EX
#
SP PA3XYZ
Returned mail: User unknown
Your message for PA0AAA entitled 'Example'
cannot be delivered: User is not known at this BBS.
-----------------------------------------------------------------------------
--message--
./EX
How to install RETMAIL on your system
-------------------------------------
o Copy RETMAIL.EXE to a directory which is in your DOS path (e.g. \FBB\BIN)
o Run RETMAIL in debug mode to check if it works OK. For example:
RETMAIL 7 100 x
Check the file RETMAIL.DBG. If it's empty no messages were returned.
Try a lower expiry limit instead. (Just for testing purposes)
o Add RETMAIL to APPEL.BAT, *before* EPURMESS. For example:
CD \FBB
RETMAIL 7 100
EPURMESS
o Change EPURMESS.INI so that EPURMESS' expiry limit for unread pmail is
larger than the limit of RETMAIL. For example:
...
# PARAMETERS FOR PERSONAL MESSAGES:
#
# PN -> PX (days after message is written)
110
...
This version was written for FBB 5.15c. I can't guarantee that it will work
with other versions. If 5.16 is released, and the format of DIRMES.SYS or
INF.SYS is changed I will release another version of RETMAIL. (If it's still
necessary. This task *should* be done by EPURMESS)
If you have any questions or suggestions feel free to mail me.
Regards, Mathijs
Packet: PE1NTP @ PI8DAZ.#TWE.NLD.EU
Internet: tyz@xs4all.nl